home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / batcsh10.zip / makefile < prev    next >
Makefile  |  1994-01-12  |  846b  |  39 lines

  1. all: bat2csh.exe
  2.  
  3. # Directory containing lex
  4. LXDIR = C:\BIN\UNX
  5. # Directory containing compiler
  6. CCDIR = C:\BORLANDC\BIN
  7. # Directory containing linker
  8. LKDIR = C:\BORLANDC\BIN
  9. # Temporary directory (ram drive)
  10. TMP = E:\TEMP
  11. # Location of precompiled headers
  12. HEADERS = $(TMP)\STDCDEF.SYM
  13.  
  14. # Filenames of lex, compiler, linker
  15. LX = $(LXDIR)\FLEX
  16. CC = $(CCDIR)\BCC
  17. LK = $(LKDIR)\TLINK
  18.  
  19. # Memory model
  20. M  = s
  21.  
  22. # Options for lex, compiler, linker
  23. LXOPT = -i -I -L -S$(LXDIR)\FLEX.SKL
  24. CCOPT = -c -m$(M) -d -N -O1 -K -X -H=$(HEADERS) -w -w-rch -w-ccc
  25. LKOPT = /c /x
  26.  
  27. # Start-up obj & libraries to link
  28. SOBJ = C0$(M)
  29. LIBS = C$(M)
  30.  
  31. lexyy.c: bat2csh.l $(LXDIR)\flex.skl
  32.         $(LX) $(LXOPT) bat2csh.l
  33.  
  34. lexyy.obj: lexyy.c
  35.     $(CC) $(CCOPT) lexyy.c
  36.  
  37. bat2csh.exe: lexyy.obj
  38.     $(LK) $(LKOPT) $(SOBJ) lexyy, bat2csh, , $(LIBS)
  39.